package com.aceitunaproject.shared.message.concrete;



import com.aceitunaproject.shared.exceptions.gamerules.IllegalActionException;

/**
 * @author Federico Bergstein
 *
 * Message from the server to inform of a rule violation
 */
public class RuleViolationEvent extends BaseMessage {

	public static final String TYPE = "RuleViolationEvent";
	private static final long serialVersionUID = 1L;
	
	/**
	 *  The messageID of the message that contained the order that violated
	 *  the rules.
	 */
	private String IllegalActionMessageID;
	
	/**
	 * The list of rule violations
	 */
	private IllegalActionException ruleViolations;

	public RuleViolationEvent() {
		super(TYPE);
	
	}

	/**
	 * @param illegalActionMessageID the id of the Message contanining the invalid orders	 */
	public void setIllegalActionMessageID(String illegalActionMessageID) {
		IllegalActionMessageID = illegalActionMessageID;
	}

	/**
	 * @return the  The messageID of the message that contained the order that violated
	 *  the rules.
	 */
	public String getIllegalActionMessageID() {
		return IllegalActionMessageID;
	}

	/**
	 * @param ruleViolations the rule violations.
	 */
	public void setRuleViolations(IllegalActionException ruleViolations) {
		this.ruleViolations = ruleViolations;
	}

	/**
	 * @return the rule violations.
	 */
	public IllegalActionException getRuleViolations() {
		return ruleViolations;
	}
	
	
	
	

}
